﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Bankautomat
{
    public partial class Form3 : Form
    {
        int m_iRequiredAmount;
        public Form3()
        {
            InitializeComponent();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            m_iRequiredAmount = Convert.ToInt32(textBox1.Text);
            this.Visible = false;
            this.Close();
            
            
        }

        public int GetAmount()
        {
            return m_iRequiredAmount;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = "5000";
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text = "10000";
        }

        private void button3_Click(object sender, EventArgs e)
        {
            textBox1.Text = "20000";
        }

        private void button5_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
